import java.util.Scanner;

public class XiPicture {
    //https://www.nowcoder.com/practice/83d6afe3018e44539c51265165806ee4  --->牛客题链接
    //打印“X”图形
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < n; j++) {
                if (i == j || i+j == n-1) {
                    System.out.print("*");
                }else{
                    System.out.print(" ");
                }
            }
            System.out.println();
        }
    }
}
